package com.vincent.kdp.bean;

import com.google.gson.Gson;

import java.io.Serializable;

/**
 * Created by ZFW
 */
public class ApiResponse implements Serializable {
    //0代表成功
    public Integer code=0;
    public String msg;

    public boolean isSuccess(){
        return code==0;
    }

    public Integer getCode() {
        return code;
    }

    public ApiResponse setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public ApiResponse setMsg(String msg) {
        this.msg = msg;
        return this;
    }


}
